package com.fzg.common.demo.hutool;

import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.digest.MD5;
import lombok.extern.slf4j.Slf4j;

/**
 * create by fzg
 * 2022/12/6 10:56
 */

@Slf4j
public class Demo01 {

    public static void main(String[] args) {
        String s = SecureUtil.md5("123456");
        log.info(s);

        MD5 md5 = new MD5();
        String s1 = md5.digestHex("123456");
        log.info(s1);

    }

}
